package Case1.InterfacesForCase1;

import Case1.MainForCase1.Brand;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface Mapper2 {
    @Select("select * from tb_brand")
    List<Brand> getAllBrandsAnno();
    @Insert("insert into tb_brand (brand_name, company_name, ordered, description, status) VALUES " +
            "(#{brand_name},#{company_name},#{ordered},#{description},#{status})")
    int addBrandAnno(Brand brand);
}
